<template>
  <div class="charts" ref="charts"></div>
</template>
  
<script>
import * as echarts from "echarts";
export default {
  name: "barChart",
  mounted() {
    // console.log(echarts);
    let lineCharts = echarts.init(this.$refs.charts);
    lineCharts.setOption({
      xAxis: {
        show: false,
        type: "category",
      },
      yAxis: {
        show: false,
      },
      series: [
        {
          type: "bar",
          data: [
            10, 23, 45, 67, 10, 30, 53, 23, 34, 46, 10, 23, 45, 66, 34, 56,
          ],
        },
      ],
      grid: {
        left: 0,
        top: 0,
        right: 0,
        bottom: 0,
      },
    });
  },
};
</script>

<style>
.charts {
  width: 100%;
  height: 100%;
}
</style>